//导入自己封装的axios实例对象
import store from "../store";
import request from "../utils/request";

//登录请求
export const Login = (data) => {
    return request({
        url: "/v1_0/authorizations",
        method: "POST",
        data,
    });
};

//获取验证码
export const getSms = (data) => {
    return request({
        url: "/v1_0/sms/codes/" + data,
        method: "GET",
    });
};

//获取用户资料
export const getUserInfo = () => {
    return request({
        url: "/v1_0/user",
        // headers: {
        //     Authorization: "Bearer " + store.getters.token,
        // },
    });
};